<?php
namespace app\api\controller;

use think\Controller;

class BaseController extends Controller
{
    private $_data = array (
        'data' => null,
        'error' => null
    );

    public function dataReturn ($data = array())
    {
        $this->_data = array_merge($this->_data, $data);

        return $this->_data;
    }
}